package com.jackeysun.app_common

import android.text.SpannableStringBuilder
import com.jackeysun.common.text.StringExt.Span

/**
 *   Created by sunxunchao on 2022/1/10.
 */
class Test {
}

fun main() {

//    val ss =
//        "~Most animals seek shade when temperatures in the Sahara Desert soar to 120 degrees Fahrenheit. But for the Saharan silver ant，  26 from their underground nests into the sun's brutal rays to  27  for food，this is the perfect time to seek lunch. In 2015 these ants were joined in the desert by scientists from two Belgian universities，who spent a month in the  28  heat tracking the ants and digging out their nests. The goal was simple，to discover how the  29  adapted to the kind of heat that can  30  melt the bottom of shoes.\n" +
//                "\n" +
//                "Back in Belgium，the scientists looked at the ants under an electronic microscope and found that their   31 ，triangular hair reflects light like a prism（棱镜）， them a metallic reflection and protecting them from the sun's awful heat. When Ph. D. student Quentin Willot  32  the hair from an ant with a  33  knife and put it under a heat lamp，its temperature jumped.\n" +
//                "\n" +
//                "The ants' \\method of staying cool is  34  among animals. Could this reflective type of hair protect people？Willot says companies are interested in  35  these ants' method of heat protection for human use，including everything from helping to protect the lives of firefighters to keeping homes cool in summer.\n" +
//                "\n"
//
//    val aa = "world'ss "
//    val a = ss.replace("[\";；：:.?!，,。？()（）【】\\[\\]{}@#$%^&*~`~·|、\\\\]*|[\\u4e00-\\u9fa5]+".toRegex()) {
//        ""
//    }.split("\\s+".toRegex())
//
//    println(a)
//
//    val b = "34".matches("\\d+".toRegex())
//    println(b)
//    val c = "prism棱镜giving"
//    val d = c.replace("[\\u4e00-\\u9fa5]+".toRegex()) { " " }
//
////    [\u4e00-\u9fa5]?
//    println(d)

//    val Sbp = SpannableStringBuilder()
//    Sbp.append("sssssssss")
//    Sbp.insert(0, "iiiii")

//    println(Sbp)

}